package com.marketlive.database;

import org.hibernate.dialect.Oracle10gDialect;
import java.sql.Types;

/*
(C) Copyright MarketLive. 2006. All rights reserved.
MarketLive is a trademark of MarketLive, Inc.
Warning: This computer program is protected by copyright law and international treaties.
Unauthorized reproduction or distribution of this program, or any portion of it, may result
in severe civil and criminal penalties, and will be prosecuted to the maximum extent
possible under the law.
*/


/**
 * Provides an i18n SQL dialect for Oracle.
 */
public class OracleI18NDialect extends Oracle10gDialect {
  /** Default Constructor. */
  public OracleI18NDialect() {
    super();

    // Used for Encryption/Decryption keys in the SYSTEM_KEYSTORE table.
    // Oracle tables may have multiple columns of type RAW, where as
    // only one column may exist of type LONG, or LONG RAW.
    registerColumnType(Types.VARBINARY, 2000, "raw($l)");

  }
}
